import { HTMLElement } from 'node-html-parser';
import s from './nbs';

import init from '@feidao/web/framework/nodejs/d/component';

import { id, spaceid, systemid, refsystemid } from './config';

////////////////////////////////////////////////////////////////////////////////
// import actions
import nba001 from './nba001';
////////////////////////////////////////////////////////////////////////////////

export default function main(html: HTMLElement, url: string, query: any) {
	const actions = {
		nba001
	};
	return init(id, s, actions, html, url, query, { spaceid, systemid, refsystemid });
}
